package bloodfang;

public class AttackData {
	private String attack;
	private AttackType type;
	private double hitDamage;
	private double critDamage;
	private double critChance;
	
	public AttackData(String _attack, AttackType _type, double _hit, double _crit, double _cc){
		setAttack(_attack);
		setType(_type);
		setHitDamage(_hit);
		setCritDamage(_crit);
		setCritChance(_cc);
	}

	public String getAttack() {
		return attack;
	}

	public void setAttack(String attack) {
		this.attack = attack;
	}

	public AttackType getType() {
		return type;
	}

	public void setType(AttackType type) {
		this.type = type;
	}

	public double getHitDamage() {
		return hitDamage;
	}

	public void setHitDamage(double hitDamage) {
		this.hitDamage = hitDamage;
	}

	public double getCritDamage() {
		return critDamage;
	}

	public void setCritDamage(double critDamage) {
		this.critDamage = critDamage;
	}

	public double getCritChance() {
		return critChance;
	}

	public void setCritChance(double critChance) {
		this.critChance = critChance;
	}
	
	public String toString(){
		String s = this.getAttack()+"\n";
		s += this.getHitDamage()+"\n";
		s += this.getCritDamage()+"\n";
		s += this.getCritChance()+"\n";
		s += this.getType()+"\n";
		return s;
	}
	
	public AttackData multiply(double multiplier) {
		this.setHitDamage(this.hitDamage * multiplier);
		this.setCritDamage(this.critDamage * multiplier);
		return this;
	}
}
